﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Profile;
using System.Web.Security;

namespace MaymuseMS.Models {
    public class User : ProfileBase {
       public static User GetUser(string username) {
            return (User)(ProfileBase.Create(username));
        }

        public static User GetUser() {
            return (User)(ProfileBase.Create(Membership.GetUser().UserName));
        }

        public string Name {
            get { return ((string)(base["Name"])); }
            set { base["Name"] = value; Save(); }
        }

    }
}